>strlen doesnt work with new
I wouldn't expect it to. Why don't you try posting code that actually compiles, then explain what you expect to happen as opposed to what's actually happening. With that information, we'll be in a better position to tell you why your expectations are unreasonable.