When you read the line from the file, try checking if the string contains "socialspy" you can use the String.contains() methods
If the line contains your string, then you can user String.replaceFirst() or String.replace()
But it does look like you are using a JSON style string, try looking more into JSON.