Fixed #3 Using lengths instead of strings