Trailing spaces
Allow empty resource, workaround for Bria on Android.