change toString format to be almost like javascript