changed type of construxtor argument to String