Add function for creating file via specifying a content string