Added string limiting functions