First occurrence character from a stream