strip whitespace from the ends of the strings used for new project file writes (had newline before shebang first line)