removing whitespace from getCommit() value