You can't strip off white spaces since url() can have optional whitespaces inside the parentheses before or after the actual file path. Otherwise, you will have bugs in filtering url hints and replacing existing hints.