Input sanatization for functions to help tests pass and catch errors.