Are you sending "abc" or are you sending "abc" followed by a Newline ? If you get a '\n' you add it to the String and then compare the String to "abc" but it has a Newline at the end so does not match
If you feel that you must use Strings then take a look at the Serial.readStringUntil() function Serial.readStringUntil() - Arduino Reference