changed == to .equals() for strings