String calculator mock