remove extra whitespace before "resource"