Add length check for commit messages