Fixed drawTable method (that accepts a string parsed through)