Avoid generating more strings while iterating to create methods

Use the already existing strings instead of creating a new one each time
just to test if it responds to the methods.