Writing interpreter for strings into drawing commands