Added some lowercase casts to parser for input normalization