optimize code, fix indentation issue, removed user input from lib/highlight_search_result.rb