added check for illegal chars on edit keyword