strlen is a function call, so no - I don't think that's a good idea