Added more string functions; improved compatibility; added tests