Define common function for creating text property values