updated it the code so you can cycle strings