added exceptions to remove trailing spaces in cutSites, configFile (not in refFile)