Changed type_str to type_in_str

Clearer function name.