rest of the string functions & bugfix