bugfix to not use strtoupper on tokens