Added stringOrdered class and Main code