Moved Rope/String functions into separate file, renamed.