Use [-1] instead of [len() - 1]