substring-before('stylesheet', 'e')" returns the string "styl". "substring-before('two words', ' ')" returns the string "two". ...