hw #3 word methods

Took me a while to figure out a way to normalize the string in a short way. I probably could use REGEX, but don't know how to use it so I tried to shorten the gsub by using loop but gave up.
For other methods I found out mostly on google with not much of problem.