Fix setToken function, breaks when value with - or _ is used