string copy and chop some chars to string