check key exists before trim
Signed-off-by: takyam <takayuki.yamaguch.m@gmail.com>
Merge pull request #199 from takyam-git/fix/commit/dab409b4

check key exists before trim