Trim trailing white space for SHELL files.