"Text::Trim" does what chomp does, but at both ends of the string.