Strip trailing whitespace
Add screenshotBase64 test