eliottwiener/MIPS-Simulator — comment on commit fffa4e6735baae50e92e197dc7edde8585183477
File: src/BinaryUtil.java line 1
By ryco218:

You can do this with

s = String.format("%32s", s).replace(" ", "0");