fixes bad initialization of short commit hash when detached
spaces
fixes leading and trailing blank spaces that might lurk around