updated fixText() to use Hack lambda syntax