Fix dictionary not working if there is a space