added leading and trailing whitespace insensitivity