string comparison in scala should be done with == instead of equals