             } else {
               updatedTitle += titleWithoutLabel
             }
-            if let lastChar = issueData.title.last, lastChar != "." {
-              updatedTitle += "."
-            }
             GithubAPI.editIssue(url: issueData.url, issueEdit: ["title": updatedTitle])
             // notify of title change
             GithubAPI.createComment(url: issueData.url,
-                                    comment: "Your title label prefix has been renamed from \(titleLabel) to \(bracketedName)")
+                                    comment: "Your title label prefix has been renamed from \(titleLabel) to \(bracketedName).")
           }
           break
         }

            } else {
              updatedTitle += titleWithoutLabel
            }
            if let lastChar = PRData.title.last, lastChar != "." {
              updatedTitle += "."
            }
            GithubAPI.editIssue(url: PRData.issue_url, issueEdit: ["title": updatedTitle])
            // notify of title change
            GithubAPI.createComment(url: PRData.issue_url,
                                    comment: "Your title label prefix has been renamed from \(titleLabel) to \(label)")
          }
          break
        }

    let componentNames = GithubAPI.getDirectoryContentPathNames(relativePath: "/components")
    var labelsToAdd = [String]()
    if let titleLabel = PRLabelAnalysis.getTitleLabel(title: issueData.title) {
      let unbracketedTitleLabel = String(titleLabel.dropFirst().dropLast())
      for name in componentNames {
        if unbracketedTitleLabel == name {
          labelsToAdd.append(titleLabel)
          break
        } else if PRLabelAnalysis.checkIfTwoStringsAreSimilar(str1: name,
                                                              str2: unbracketedTitleLabel,
                                                              threshold: 2) {
          let bracketedName = "[" + name + "]"
          labelsToAdd.append(bracketedName)

          // update title
          if let range = issueData.title.range(of: "]") {
            let titleWithoutLabel = titleLabel[range.upperBound...]
            var updatedTitle = bracketedName
            if titleWithoutLabel.first != " " {
