[1] Bug fixed. check dot before zero character examination in optimizeSum function