Update Program.cs

Got everything working. As far as I know. Extended the string class to get the substring working. Also added some OOP.