strip off tailing whitespace from device parser replacements