removing underscores when they are in the end of the method name