Update bookmark to trim beginning and ending whitespace.