JuliaLang/julia — pull request #6779 by WestleyArgentum (2014-05-07 22:38:53+00:00)
Title: beginswith, endswith accept Chars

I noticed that `rstrip` and others accept `Chars`, it only seems fair if `endswith`, `beginswith` do the same.

Consider trying to strip punctuation from the end of a sentence:
```
if endswith(sentence, ['.','?','!'])
sentence = chop(sentence)
end
```