proper string comparison