in reply to Re^2: trimming space from both sides of a stringin thread trimming space from both sides of a string
s/^\s+//; s/\s+$//; works better than s/^\s*//; s/\s*$//;.