Trim the end off a word.

trim(x, len)

Arguments

x

string

len

number of characters to trim