Fixed whitespace bug. Contents of span element are now trimmed.