wrote a script to sort strings by length