How To Allow Only String In Python