Removed useless strlen() and wcslen().