modified spec to expose bug with last character
fixing bug with last character