Fixed Search to handle search fields and stringify input keys