added length string function