Add reverse slicing function
Add try-except dictionary lookup function