fixed the bug removing spaces after tokens