Fix some bugs and add support for \s.