Attempt at Ruby string calculator and tests for it