Add nicer error message when new string value size exceeds max size.
Update javadoc for getOption