fixed up prompt()

Fixed up, and cleaned up. Re-tested, works.
Letting non-strings be passed in for 'promptStr', so variables or other values can be used.
Look good ?
Any further suggestions ?

@tach4n good idea for the getline wrapper

Thanks you two..