Remove trailing zeros from a double to string