I don't remeber if anything changed in BG II (on which BGEE is based), but according to these tables, your strength gives you a bonus of +2 to hit (and +5 to damage), while two dots in longsword is a +1 bonus. Total seems to be +3.
The original game didn't have them.