from string to calculate square and composite rectangle