Added trim and return null values
Supress DOMDocument loadHTML warnings