A function for performing all word substitutions that have been mentioned in xkcd