Added trim check for adding thumbnail url