Allow whitespace around custom media name

Close #2