added ability to limit number of characters in average_rating method