get local ip
get string length