updates to fix the poor logic for strings