Updating `rest` to handle strings.