code: private String getSentenceFromList(List<String> strings, boolean addSpaces) {
          StringBuilder stringBuilder = new StringBuilder();
  
          for (String string : strings) {
              stringBuilder.append(string);
  
              if (addSpaces) {
                  stringBuilder.append(NORMAL_SPACE);
              }
          }
  
          return stringBuilder.toString();
      }
docs: Creates a string using the words in the list and adds spaces between words if required.
  
  @param strings   Strings to be merged into one
  @param addSpaces Specifies if the method should add spaces between words.
  @return Returns a sentence using the words in the list.