Remove keyword with invalid characters