takeRight
Added slice preconditions
Added trimStart and trimEnd preconditions