Escape method names before using them in a regex