string helper in if