Used string tokenizer class to split strings instead of string.split()