added code to find the first non repeating character