Remove extraneous space from strings