[bash] How to remove a newline from a string in Bash