Validate String Using Regex In Python W3schools