Add \0 to the history elements