Remove spaces before method names