Trim off end of option