solved non repeating first char