using standard c strlen function now