added my own strlen (I don't think I was using the right one before and it's super easy to implement