Strings of less than 4 characters crashed Viola

The code tries to look at the last four characters of a string, so if it
found string < 4 characters long, it crashed.