trimming out empty params so the paginate kaminari links aren't to long