parse sum correctly without whitespaces

Signed-off-by: nickolayrusev <nickolay.rusev@gmail.com>