Handle possible emoji as the last char in a string