updated String assertion to support async validation