Fix infinite loop when calling Magick.formats
Remove trailing whitespace