fixed toInteger, added regex support for starts-/endsWith, tests still missing