Fix out of bound slice access
Fix out of bound slice access

We can not assume that the slice always has 5 elements. This rewrites
the code to use `starts_with`.

GuillaumeGomez/sysinfo,GuillaumeGomez/sysinfo