added Curve and minor change in StringUtil