Remove useless spaces before and after string values