WithFunc:solidified usage of string

unstead of file