Finally sanitized the input