get size of string without using str len