Currently, we allow the lint `clippy::indexing_slicing` which is not recommended. Instead, we should use safe method for indexing.