StringRef: add parsing helpers