Added trim in colour hex string parsing

Signed-off-by: Tom Wright <tom@inflatablecookie.com>