added string calc code and tests