fix bug. String#headOption,lastOption