Remove extra spaces in bash script