fix string processing to account for more than 2 cores

* fix trailing whitespace
Merge branch 'development'

* development:
  fix string processing to account for more than 2 cores