Created partial class for MainWindow and implemented StringToCodePoints()