change validator API context to rawStr