remove separator when needed