check str length