find first nonrepeating char in str