Handle cases where keys in  the mapping list contains spaces.