removing the unnecessary character