Do not insert terminating delimiter if already exist.

Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>