use to_str to check for strings and added #pretty_inspect to non-strings