How to equalize strings on both versions (2.3 and 2.4)