$i =~ s/^\s+//; #remove leading whitespaces
$i =~ s/\s+$//; #remove ending whitespaces

computer2know :: thank you for your visit :: have a nice day :: © 2018