Remove extraneous spaces in method definitions and calls