Bug fix string.trim() not defined in older IE