TxtToMySQL function