Comparing serial data with if statements in processing

.println() may be sending a \r\n at the end of the line, in which case reading the input will result in 'left\r' as your string. You can check this.

I don't use Strings, but if there is a .contains method you can use instead of .equals this may be a safer option.