Got part of the string processing working