updated tokenize() method to have type of character given to it beforehand (alpha numeric/operator/etc...)