Just to underscore the above links and examples, calling "mystring".equals("mystring") rather than "mystring"=="mystring" is necessary because, as the reference states:
it’s not possible to compare strings using the equality operator (==). Returns true if the strings are the same and false if they are not. equals() / Reference / Processing.org
This is inherited from Java, in which Strings are immutable objects and the == operator compares their memory addresses rather than their contents. The result is really unpleasant – depending on your code, you might accidentally get == to work on strings, but not for the reasons you think. Just don’t do it.