Fixed string bugs in CommonUtilities.