strlen doesn't count the null character, have to add 1