Should we also do nothing if `word` contains just whitespace? If so and you want to use a regex, make sure to use `\A` and `\Z` anchors and not `^` and `$`.