Fix bug when saving value with multiple white space characters