remove a unnecessary character