c# String and text processing homework