Fixed a bug where submitting a build with leading/trailing spaces caused build failures