Remove pointers from strings