While Loop Through String Array Python Methods