Fixed build break caused by array indexing being removed from &str