Function globals string truncateAt
truncate at the first match string.truncateAt("file.xml", ".xml"); # "file.xml" -> "file" string.truncateAt("file.xml", ".txt"); # "file.xml" -> "file.xml"
truncate at the first match string.truncateAt("file.xml", ".xml"); # "file.xml" -> "file" string.truncateAt("file.xml", ".txt"); # "file.xml" -> "file.xml"