Added working if code for string comparison.