update empty string handling with correct string equavilence compare