get rid of extra characters in method name