remove trailing symbol