fixed the length arguement issue with even strings