added if-statements that compare strings