Removed isEmpty() check for Strings.