check str length before timeout
under construction