Refactored some code that works with strings.
Fixed some more char and char* issues.