remove un-necessary whitespace