Extract methodize(str) method and test separately.