Remove trailing white spaces and convert tabs to spaces