Not converting stream wrapper and type to lowercase