separate the termination from string