The `$firstwords` function does not catch and handle IndexError. For example, the following will crash.
$firstwords(one two three four,-40)
See code changes in pull request #1507 submitted by rdswift.
See code changes in pull request #1507 submitted by rdswift.