VSP Vision interview question

How would you compare two strings? Follow up question: why would you use equals()?