Change several improper "sizeof" to "strlen", as sizeof in that context would