resolves issue when imput message has spaces