String and pattern match functions. Closes #19