How to trim whitespace from a Bash variable? How to trim whitespace from a Bash variable? bash bash