string draw optimization