how to read a specific character from a char?