Refactored toString() Method to return full integer if denominator is 1