Calculator for Japanese Mahjong with string input