Fixed a string compare that wasn't parsing units correctly