Added detection of too long strings