restore_from_session & restore_from_session methods added
session cache
returned empty string check in check_string() method