streq, strlen adjusted for using the stack