fixed issue #32. string compare in shell compares length