Correctly extract the method when queries start with new lines. Fixes #63