       line = template.customImplementation
       line.replace(token: template.variableNameToken, withString: hint.variableName)
       line.replace(token: template.customTypeToken, withString: hint.type)
-      line.replace(token: template.valueToken, withString: formatArrayString(rawValue: value, rawType: str))
+      line.replace(token: template.valueToken, withString: formatRawArrayString(rawValue: value, rawType: str))
       return line
 
     default:

    return line
  }

  private func formatArrayString(rawValue: AnyObject, rawType: String) -> String {
    var rawTypeCopy = rawType
    var rawValueStr = "\(rawValue)"


    rawValueStr = String(rawValueStr.dropFirst()) // drop (
    rawValueStr = String(rawValueStr.dropLast()) // drop )

    rawValueStr = rawValueStr.trimmingCharacters(in: .whitespacesAndNewlines)

    return "[\(rawValueStr)]"
  }
}

