Yang-Mills theory from non-critical string