Trimming result; avoids "unexpected whitespace character" error