Cleans string formatting out of controller and handles the conversion in the model.