special char handle and trim