Added a method that allows you to specify the length of the string you
want