add test for #17
fix #17; if symbol at the end of input string
bumpup v0.2.21