String Length Function In Cpp