Fix bug where commit() only accepted first word of message