formatting search fields