Data preprocessing with insertions of spaces