Added trim to siteurl flag value, removed debug outputs