Add string length validation