Changed parameter type for showInputDialog