C Language: Search and Replace Strings Program