added some functionality to findText() in RMtext