[]string in ...; replace incorrect cap() with len()