substring drawing