extracted functions the string modal