Checks that method names conform to the specified format