Indexerror String Index Out Of Range Python Reverse