incorrect. the space after the colon is optional. Use this:
  headerToParse.substring(colon + 1).trim()