It would be better to convert to string just once.