Changed int->str to rat->str due to issue #16