modified string comparison to number