remove space when auto complete mark names, transate markname to lowercase.