Deal with max lenghts in search params