A man accused of releasing pepper spray while attempting to rob a First Hawaiian Bank in Waikiki pleaded not guilty Monday.