fixed broken parsing in search_text fxn