Started on sanitize()

See comment for instructions.