Validation for function/method names

It also include the custom suffix when the method is a reserved word.

In my case, the method `list` was being created and it is a reserved word.