ENH: Treat 'Inf' as infinity in text parser

Makes 'inf' checks case insensitive using strcasecmp
Fixes #4219.