Sanitize value

Signed-off-by: Kirill Zaitsev <kirik910@gmail.com>