Avoid creating new String object when comparing