python program to find first non duplicate character in a string. Both case sensitive and insensitive