Removing characters invalid