normalize token script