Updating `last` to handle strings.