added guard for non string