Fixed colorRectangle, optimized stringLength and DEmulA