Trying to implement StringTrim into getToken function