Fixes bug where multiple spaces between method and pattern weren't discarded