Hmmm... didn't read the last couple of lines properly. Split the string on the colons, then split each substring on spaces. You'll end up with a pair of strings for each month where one is the amount paid and the other is the month. You could put them in a Hashtable and then instead of using String.Empty as I did in my code you could get the payment value from the Hashtable.