Integrated sub_string.py functions into the searchresult class