Fixed some bugs in paths and strings.