Code for doing the string calculator kata