Remove spaces before ":" and ";"