added string functions, added fixes