add wordMatch to imToText for comparing strings