What I want to do is replace the word "OR" in the brackets with a command. I have tried using ||, but this is apparently only used for integers and gives me the error "Operator || cannot be applied to java.lang.String,java.lang.String"

Please wrap your code in code tags, to do this, do the following
[code]
YOUR CODE HERE
[/code]

The problem with using || is that it requires booleans, which strings are not. You want to switch it to something like this

Java Code:

thisString.equals(anotherString) OR thisString.equals(anotherString)

You can replace the OR with || The compiler doesn't allow you do say is this string equal to this, that, or another. You have to make the comparison for each test you want. If you want to test if the string equals one of five different strings you will have to or 5 conditions together.