params: Do not go over the limit when getting the string length