limitStringLength exercise completed, see solution