Factor out input type in messages and normalize
Merge pull request #327 from presidentbeef/add_method_for_input_type_output

Factor out dangerous input type in messages and normalize