           timestamp = response.data[0].Timestamp
 
           if customCaption
-            msg.send getImageUrl(episode, timestamp, trimWhitespace(customCaption))
+            msg.send getImageUrl(episode, timestamp, formatCaption(customCaption))
 
           else
             axios(getRequestConfig('caption', {e: episode, t: timestamp}))

  encodeURIComponent(str).replace /[!'()*]/g, (c) ->
    '%' + c.charCodeAt(0).toString(16)

trimWhitespace = (string) ->
  string.replace /^\s*|\s*$/g, ''

addLineBreaks = (str) ->
  wordCount = 4

    newString += word + delimiter
  newString

trimWhitespace = (string) ->
  string.replace /^\s*|\s*$/g, ''

formatCaption = (caption) ->
  addLineBreaks(trimWhitespace(caption))

combineCaptions = (captions) ->
  if captions.length <= 4
    newCaption = ''
    captions.forEach (caption, i) ->
      newCaption += formatCaption(caption.Content)
      unless i == (captions.length - 1)
        newCaption += '\n'
    newCaption
