You need to use equals
method for string comparision. Change this
if (value == "specificword") {...}
to
if (value.equals("specificword")) {...}
equals
method compares the string contents while == checks for object equality. Read this related post for more info: