fixes to string functions
further fixes to ext/standard