scanner: change NewScannerFromString() to accept empty strings

Signed-off-by: Alejandro Mery <amery@geeks.cl>