Ignore dups and space from history